package com.asl.website.serviceDetails.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.asl.website.serviceDetails.mapper.TTransportServiceMapper;
import com.asl.website.serviceDetails.domain.TTransportService;
import com.asl.website.serviceDetails.service.ITTransportServiceService;

/**
 * 运输服务详情Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-21
 */
@Service
public class TTransportServiceServiceImpl implements ITTransportServiceService 
{
    @Autowired
    private TTransportServiceMapper tTransportServiceMapper;

    /**
     * 查询运输服务详情
     * 
     * @param id 运输服务详情主键
     * @return 运输服务详情
     */
    @Override
    public TTransportService selectTTransportServiceById(Long id)
    {
        return tTransportServiceMapper.selectTTransportServiceById(id);
    }

    /**
     * 查询运输服务详情列表
     * 
     * @param tTransportService 运输服务详情
     * @return 运输服务详情
     */
    @Override
    public List<TTransportService> selectTTransportServiceList(TTransportService tTransportService)
    {
        return tTransportServiceMapper.selectTTransportServiceList(tTransportService);
    }

    /**
     * 新增运输服务详情
     * 
     * @param tTransportService 运输服务详情
     * @return 结果
     */
    @Override
    public int insertTTransportService(TTransportService tTransportService)
    {
        return tTransportServiceMapper.insertTTransportService(tTransportService);
    }

    /**
     * 修改运输服务详情
     * 
     * @param tTransportService 运输服务详情
     * @return 结果
     */
    @Override
    public int updateTTransportService(TTransportService tTransportService)
    {
        return tTransportServiceMapper.updateTTransportService(tTransportService);
    }

    /**
     * 批量删除运输服务详情
     * 
     * @param ids 需要删除的运输服务详情主键
     * @return 结果
     */
    @Override
    public int deleteTTransportServiceByIds(Long[] ids)
    {
        return tTransportServiceMapper.deleteTTransportServiceByIds(ids);
    }

    /**
     * 删除运输服务详情信息
     * 
     * @param id 运输服务详情主键
     * @return 结果
     */
    @Override
    public int deleteTTransportServiceById(Long id)
    {
        return tTransportServiceMapper.deleteTTransportServiceById(id);
    }
}
